var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var ObjectId = require('mongoose').Schema.Types.ObjectId;

// Define User schema 
var _userlession = new Schema({ 
    userid : {type:ObjectId}, 
    lessionid : {type:ObjectId},
    lessionname : String,
    create_time: { type: Date, default: Date.now }
});
// export them 
exports.userlession = mongoose.model('userlession', _userlession);